package com.binarywang.spring.starter.wxjava.mp.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import static com.binarywang.spring.starter.wxjava.mp.properties.WxWebsiteProperties.PREFIX;


/**
 * @author lc
 * @createDate 2023/3/22
 * @description
 */
@Data
@ConfigurationProperties(PREFIX)
public class WxWebsiteProperties {

  public static final String PREFIX = "wx.website";

  /**
   * 设置微信网站应用的appid.
   */
  private String appId;

  /**
   * 设置微信网站应用的app secret.
   */
  private String secret;

  /**
   * 设置微信网站应用的token.
   */
  private String token;

  /**
   * 设置微信网站应用的EncodingAESKey.
   */
  private String aesKey;

  /**
   * 自定义host配置
   */
  private HostConfig hosts;

  /**
   * 存储策略
   */
  private final WxMpProperties.ConfigStorage configStorage = new WxMpProperties.ConfigStorage();
}
